/**
 * Created by judasnow on 20/06/2017.
 */
import Vue from 'vue'
import Vuex from 'vuex'

import auth from './modules/auth'
import loading from './modules/loading'
import common from './modules/common'

import * as actions from './action'
import * as getters from './getter'

Vue.use(Vuex);
// const debug = process.env.NODE_ENV !== 'production'

export default new Vuex.Store({
    actions,
    getters,
    modules: {
        auth,
        loading,
        common,
    },
    // strict: debug,
    // plugins: debug ? [createLogger()] : []
})